package com.lonely.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lonely.goods.domain.dto.goods.GoodsQuotationSheetPartMaterialDTO;
import com.lonely.order.domain.entity.SysOrderPart;
import com.lonely.order.domain.entity.SysOrderPartMaterial;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/7/2 13:54
 * @description: 订单部件物料关系表服务类
 */
public interface IOrderPartMaterialService extends IService<SysOrderPartMaterial> {

    /**
     * 创建订单物料
     *
     * @param sysOrderPart
     * @param goodsPartId
     */
    void createOrderPartMaterials(SysOrderPart sysOrderPart, Long goodsPartId);


    /**
     * 获取部件id对应的物料信息(全颜色数据，没有配置设置初始值)
     *
     * @param orderPartId
     * @return
     */
    List<GoodsQuotationSheetPartMaterialDTO> queryQuotationSheetPartMaterials(Long orderPartId);
}
